import axios from "axios";
const gatewayRoute = 'http://localhost:9000'
const useRoute ='/uaa'
const productRoute = '/product'
const request = axios.create({
    baseURL: gatewayRoute,
    timeout: 5000
})
request.interceptors.request.use(config => {
    const token = localStorage.getItem('token')
    if(token != null){
        config.headers['token'] =  token
    }
    return config
})


export default{
    request,
    useRoute,
    productRoute
}
// export default request
